<?
	Class Database {

		public $handler;

		public function init() {

		    //connect to the database 
		    $connection = new mysqli("184.172.50.122", "mishoppa", "2hjI(J)6yfgh23GF", "ailerons");

		    // check connection
		    if ($connection->connect_errno) {
		        printf("Connect failed: %s\n", $connection->connect_error);
		        exit();
		    } else {
		    	$this->handler = $connection;
		    }
		}

	}
?>
